package com.ctshk.rpc.order.tour.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 系列团游客退款记录
 * </p>
 *
 * @author 谭响
 * @since 2021-01-28
 */
@Data
@ApiModel(value="系列团游客退款记录列表DTO", description="系列团游客退款记录列表DTO")
public class SeriesOrderTouristRefundListDTO implements Serializable {

    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    @ApiModelProperty(value = "团期ID")
    private Long scheduleId;

    @ApiModelProperty(value = "游客ID")
    private Long touristId;

    @ApiModelProperty(value = "中文姓")
    private String cnSurname;

    @ApiModelProperty(value = "中文姓名")
    private String cnName;

    @ApiModelProperty(value = "英文姓")
    private String enSurname;

    @ApiModelProperty(value = "英文姓名")
    private String enName;

    @ApiModelProperty(value = "退款状态（2：审批中，3：审批通过，4：审批不通过，5：已退款）")
    private Integer refundStatus;

    @ApiModelProperty(value = "实收金额")
    private BigDecimal totalPaidIn;

    @ApiModelProperty(value = "退款金额")
    private BigDecimal refundAmount;

    @ApiModelProperty(value = "实际退款金额")
    private BigDecimal actualRefundAmount;

    public BigDecimal getRefundAmount() {
        if (refundAmount == null) {
            return new BigDecimal(0);
        }
        return refundAmount;
    }

    public BigDecimal getActualRefundAmount() {
        if (actualRefundAmount == null) {
            return new BigDecimal(0);
        }
        return actualRefundAmount;
    }
}
